package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.main.date.datedetail.DateDetailActivity;
import com.kelvin.paopao.module.main.date.datedetail.DateDetailPresenter;
import com.kelvin.paopao.module.main.date.datedetail.IDateDetailPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/16.
 */

@Module
public class DateDetailModul {
    private DateDetailActivity mView;

    public DateDetailModul(DateDetailActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IDateDetailPresenter providePresenter() {
        return new DateDetailPresenter(mView);
    }
}
